package ch.fhnw.qualiscan;

import java.io.Serializable;

import ch.fhnw.qualiscan.application.layout.BaseLayout;
import ch.fhnw.qualiscan.core.Controller;
import ch.fhnw.qualiscan.core.libraries.LanguageLibrary;
import ch.fhnw.qualiscan.core.libraries.LoaderLibrary;

import com.vaadin.ui.Window;
/**
 * This class is used to store application wide data. It is being attached to the main window.
 * @author Kevin Mettenberger
 *
 */
public class ApplicationData implements Serializable {

	private Controller currentController;
	private BaseLayout baseLayout;
	private LoaderLibrary loaderLib;
	private LanguageLibrary languageLib;
	private Window currentModal;

	public BaseLayout getBaseLayout() {
		return baseLayout;
	}

	public void setBaseLayout(BaseLayout baseLayout) {
		this.baseLayout = baseLayout;
	}

	public Controller getCurrentController() {
		return currentController;
	}

	public void setCurrentController(Controller currentController) {
		this.currentController = currentController;
	}

	public LoaderLibrary getLoaderLib() {
		return loaderLib;
	}

	public void setLoaderLib(LoaderLibrary loaderLib) {
		this.loaderLib = loaderLib;
	}

	public LanguageLibrary getLanguageLib() {
		return languageLib;
	}

	public void setLanguageLib(LanguageLibrary languageLib) {
		this.languageLib = languageLib;
	}

	public Window getCurrentModal() {
		return currentModal;
	}

	public void setCurrentModal(Window modal) {
		this.currentModal = modal;
	}
	
	
	
	
}
